//package cn.net.shuxing.yifu.common.quartz.config;
//
//import org.quartz.JobDetail;
//import org.quartz.Scheduler;
//import org.quartz.SchedulerException;
//import org.quartz.Trigger;
//import org.quartz.impl.StdSchedulerFactory;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
//@Configuration
//public class QuartzScheduleConfiguration {
//
//    @Autowired
//    private JobDetail dealMatchJobDetail;
//
//    @Autowired
//    private Trigger dealMatchJobTrigger;
//
//
//    @Bean
//    public Scheduler scheduler()
//    {
//        try {
//            Scheduler scheduler = StdSchedulerFactory.getDefaultScheduler();
//            scheduler.start();
//            scheduler.scheduleJob(dealMatchJobDetail,dealMatchJobTrigger);
//            /** 等到设置了开始配发时间后启用这个触发器和作业 **/
////            scheduler.scheduleJob(coinGrantSimpleJobDetail,coinGrantJobSimpleTrigger);
//            return scheduler;
//        } catch (SchedulerException e) {
//            e.printStackTrace();
//        }
//        return null;
//    }
//}
